package com.karson.common.constants;

public class SmsConstants {

    /** 接口异常错误码 */
    public static final Integer SMS_ERROR_CODE = 400;

    /** 短信发送队列key */
    public static final String SMS_SEND_KEY = "sms_send_list";

    /** 手机验证码redis key */
    public static final String SMS_VALIDATE_PHONE = "sms:validate:code:";

    /*
      ---------------------
      短信模版配置开关常量
      ---------------------
     */
    /** 验证码 */
    public static final String SMS_CONFIG_VERIFICATION_CODE = "verificationCode";

    /** 验证码模板ID */
    public static final Integer SMS_CONFIG_VERIFICATION_CODE_TEMP_ID = 538393;


    /**
     * 验证码过期时间
     */
    public static final Integer SMS_CONFIG_VERIFICATION_CODE_TTL = 60;

    /*
      短信类型
      短信模版配置开关常量
     */
    /** 验证码 */
    public static final int SMS_CONFIG_TYPE_VERIFICATION_CODE = 1;


    /** 发送短信参数模板 */
    public static final String SMS_COMMON_PARAM_FORMAT = "param[{}]";
}